Skip to content

Conversation

@kbond
Copy link
Member

@kbond kbond commented Apr 22, 2022

The annotaion/attribute drivers do not register embeddables in class metadata but the file drivers do.

Reference: doctrine/orm#8138
Fixes: #270

The annotaion/attribute drivers do not register embeddables in
class metadata but the file drivers do.
@kbond
Copy link
Member Author

kbond commented Apr 22, 2022

I opted not to include tests as it would require yet another test matrix element (duplicating all the mapping), further complicating the test suite.

@kbond
Copy link
Member Author

kbond commented Apr 22, 2022

@mergeMarc, can you confirm this fixes #270 in your real app? Then I'll merge/release.

@mergeMarc
Copy link

Tested the patch with my application and everything works now even when removing ->withoutPersisting().

Thank you so much for looking into this.

@kbond kbond merged commit ff9e4ef into zenstruck:master Apr 22, 2022
@kbond kbond deleted the embedded-mapping branch April 22, 2022 15:00
@kbond
Copy link
Member Author

kbond commented Apr 22, 2022

Perfect! Tagged a new release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Development

Successfully merging this pull request may close these issues.

Factory for embeddable classes only working when using "withoutPersisting"

2 participants